package com.ldg.crm.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.ldg.crm.dto.EmployeeDto;
import com.ldg.crm.dto.UserDto;
import com.ldg.crm.entity.EmployeeEntity;
import com.ldg.crm.entity.UserEntity;

public interface EmployeeService {

	// 添加用户
	public int addEmployee(EmployeeEntity employ);

	// 修改用户
	public int updateEmployee(EmployeeEntity employ);

	// 删除用户
	public int deleteEmployee(Integer[] ids);

	// 分页查找 String searchFactor,
	public EmployeeDto findPageList1(String queryName, Date hireDate, int pageNum, int pageSize);

	// 修改用户1
	public int updateUser(UserEntity employ);

	// 添加用户1
	public int addUser(UserEntity employ);

	// 删除用户1
	public int deleteUser(Integer[] ids);

	// 分页查找
	public UserDto findPageList1(int pageNum, int pageSize);

	//查找用户是否存在
	public UserEntity findByNumberAndPassword(UserEntity user);
	
	//创建用户
	public int createUser(EmployeeEntity employ);

}
